﻿@model ICDA.Web.Models.LogOnModel
@{
    ViewBag.Title = "Log On";
}
<script type="text/javascript">
    $(document).ready(function () {
        var $div2 = $(".validation-summary-errors");
        if ($div2.data("active")) { return; }
        $div2.show().data("active", true);
        setTimeout(function () {
            $div2.slideUp();
        }, 3000);
    });
</script>
@using (Html.BeginForm())
{
    <div style="padding-top: 100px;">
        @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
        <div class="loginContainer">
            <div class="divspacer-small">
            </div>
            <div class="lgRow">
                <div class="labelContainer">
                    @Html.LabelFor(m => m.UserName)
                </div>
                <div class="textBoxContainer">
                    @Html.TextBoxFor(m => m.UserName)
                </div>
                <div class="LoginMessageRow">
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
            </div>
            <div class="lgRow">
                <div class="labelContainer">
                    @Html.LabelFor(m => m.Password)
                </div>
                <div class="textBoxContainer">
                    @Html.PasswordFor(m => m.Password)
                </div>
                <div class="LoginMessageRow">
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
            </div>
            <div class="lgRow submitbutton">
            <div>
                <button type="submit" value="Log On" class="button orange medium" id="LogOn" >Login</button>
                </div>
            </div>
        </div>
    </div>
}
